package ua.dogar.patterns;

import ua.dogar.vectors.LinkedListVector;
import ua.dogar.vectors.Vector;

public class LinkedListVectorFactory implements VectorFactory{

	@Override
	public Vector createVector() {
		return new LinkedListVector();
	}

	@Override
	public Vector createVector(int length) {
		Vector vector = new LinkedListVector();
		for(int i = 0;i<length;i++)
			vector.setElement(0, i);
		return vector;
	}

}
